<#assign tit><#if _oper='add'>新增<#else>修改</#if>商品类型</#assign>
<@page.html title=tit>
<script type="text/javascript" src="${_appPath!}/js/cal.js"></script>
<div style="width:800px;">

  <form id="fm_input" method="post" action="<#if _oper='add'>_add<#else>_edit</#if>" onsubmit="return post(this);">
    <div class="kbox">
      <div style="width:450px; float:left;">
        <table class="input">
          <tr>
            <th width="35%">商品编码</th>
            <td width="65%"><#if _oper='add'><input type="text" name="productCode" value="${pssProductCode.productCode!}" req="商品编码" size="16" maxlength="20"><span class="require">*</span><#else><input type="hidden" name="productCode" value="${pssProductCode.productCode!}">${pssProductCode.productCode!}</#if></td>
          </tr>
          <tr>
            <th>商品名称</th>
            <td><input type="text" name="productName" value="${pssProductCode.productName!}" req="商品名称" size="26" maxlength="50"><span class="require">*</span></td>
          </tr>
          <tr>
            <th>商品类别</th>
            <td><select name="productType" style="width:300px;" req="商品类别"><option value=""></option><#if productTypeLst??><#list productTypeLst as t><option value="${t.id}" <#if pssProductCode.productType?? && pssProductCode.productType=t.id> selected</#if>>${t.id} - ${t.name}</option></#list></#if></select><span class="require">*</span></td>
          </tr>
          <tr>
            <th>计量单位</th>
            <td><select name="unit" style="width:300px;" req="计量单位"><option value=""></option><#if productUnit??><#list productUnit as t><option value="${t.id}" <#if pssProductCode.unit?? && pssProductCode.unit=t.id> selected</#if>>${t.name}</option></#list></#if></select><span class="require">*</span></td>
          </tr>
          <tr>
            <th>助记符</th>
            <td><input type="text" name="spell" value="${pssProductCode.spell!}" req="助记符" size="26" maxlength="50"><span class="require">*</span></td>
          </tr>
          <tr>
            <th>标准售价</th>
            <td><input type="text" name="price" value="${pssProductCode.price!}" req="售价" ><span class="require">*</span></td>
          </tr>
          <tr>
            <th>员工价</th>
            <td><input type="text" name="allowanceTypePrice1" value="${pssProductCode.allowanceTypePrice1!}"></td>
          </tr>
          <tr>
            <th>会员价</th>
            <td><input type="text" name="allowanceTypePrice2" value="${pssProductCode.allowanceTypePrice2!}"></td>
          </tr>
          <tr>
            <th>备用价1</th>
            <td><input type="text" name="allowanceTypePrice3" value="${pssProductCode.allowanceTypePrice3!}"></td>
          </tr>
          <tr>
            <th>备用价2</th>
            <td><input type="text" name="allowanceTypePrice4" value="${pssProductCode.allowanceTypePrice4!}"></td>
          </tr>
          <tr>
            <th>备用价3</th>
            <td><input type="text" name="allowanceTypePrice5" value="${pssProductCode.allowanceTypePrice5!}"></td>
          </tr>
          <tr>
            <th>采购价</th>
            <td><input type="text" name="purcPrice" value="${pssProductCode.purcPrice!}" req="采购价" ><span class="require">*</span></td>
          </tr>
          <tr>
            <th>采购合同号</th>
            <td>
            <select name="defaultContract" style="width:315px;"><option value=""></option><#if purcContract??><#list purcContract as t><option value="${t.id}" <#if pssProductCode.defaultContract?? && pssProductCode.defaultContract=t.id> selected</#if>>${t.id} - ${t.name}</option></#list></#if></select></td>
          </tr>          
          <tr>
            <th>上架日期</th>
            <td><input type="text" class="date" name="groundingDate" value="${pssProductCode.groundingDate!}" req="上架日期" onclick="cal(this);" size="10" maxlength="10"><span class="require">*</span></td>
          </tr>          
          <tr>
            <th>下架日期</th>
            <td><input type="text" class="date" name="undercarriageDate" value="${pssProductCode.undercarriageDate!}" req="下架日期" onclick="cal(this);" size="10" maxlength="10"><span class="require">*</span></td>
          </tr>          
          <tr>
            <th>卖品/非卖品</th>
            <td><select name="saleFlg" style="width:100px;" req="卖品非卖品标识"><option value=""></option><#if saleFlgLst??><#list saleFlgLst as t><option value="${t.id}" <#if pssProductCode.saleFlg?? && pssProductCode.saleFlg=t.id> selected</#if>>${t.name}</option></#list></#if></select><span class="require">*</span></td>
          </tr>
<#if _oper='edit'>
          <tr>
          	<th>有效/无效品</th>
            <td><select name="status" style="width:100px;"></option><option value="1" <#if pssProductCode.status?? && pssProductCode.status=1> selected</#if>>有效</option><option value="0" <#if pssProductCode.status?? && pssProductCode.status=0> selected</#if>>无效</option></select></td>
          </tr>
</#if>
          <tr>
            <th>备注</th>
            <td colspan="3"><textarea name="note" cols="38" rows="2">${pssProductCode.note!}</textarea></td>
          </tr>
        </table>
      </div>
      <div class="clear"></div>
    </div>
    <div class="button"><input type="submit" value="提 交"></div>
  </form>
</div>
</@page.html>